package com.wu.db;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteDatabase.CursorFactory;
import android.database.sqlite.SQLiteOpenHelper;
import android.util.Log;

public class DatabaseHelper extends SQLiteOpenHelper {

	public DatabaseHelper(Context context, String name, CursorFactory factory,
			int version) {
		super(context, name, factory, version);
	}
	
	public DatabaseHelper(Context context, String name, CursorFactory factory) {
		 this(context, name, factory, 1);
	}

	public DatabaseHelper(Context context, String name) {
		 this(context, name, null, 1);
	}
	
	@Override
	public void onCreate(SQLiteDatabase db) {
		Log.d("me", "create db");
		db.execSQL("create table user(username varchar(255),email varchar(255))");
	}

	@Override
	public void onUpgrade(SQLiteDatabase arg0, int arg1, int arg2) {
		// TODO Auto-generated method stub

	}

}
